//17 задание Begin
/*#include <iostream>
#include <cmath>

using namespace std;
int main(int argc, char **argv[])
{
  double A, B, C;
  cin >> A >> B >> C;
  cout << "AC = " << (C - A) <<endl;
  cout << "BC = " << (C - B) <<endl;
  cout << "SUMMA = " << (C - A) + (C - B) <<endl;
  return 0;
}*/

//18 задание Begin
/*#include <iostream>
#include <cmath>
using namespace std;
int main(int argc, char **argv[])
{
  double A, B, C;
  cin >> A >> C >> B;
  cout << "prizvedenie dlin AC i BC = " << (C-A)*(B-C) <<endl;
  return 0;
}*/

//17 задание Integer
/*#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{   int a,b;
    cout<<"vvedite A > 999: ";
    cin>>a;
    b = a / 100;
    b = b % 10;
    cout<<"SOTNI: "<<b;
    return 0;
}*/

//18 задание Integer
/*#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    int a,b;
    cout<<"vvedite A > 999: ";
    cin>>a;
    b = a / 1000;
    b = b % 10;
    cout<<"Tisyachi: "<<b;
    return 0;
}*/

//17 задание Boolean
/*#include <iostream>
using namespace std;
int main(int argc, char * argv[])
{
  int A;
  cin >> A;
  cout << (((A - 100 >= 0) && (A - 999 <= 0)) && (A % 2 != 0));
  return 0;
}*/

//18 задание Boolean
/*#include <iostream>
using namespace std;
int main(int argc, char * argv[])
{
  int A, B, C;
  cin >> A >> B >> C;
  cout << ((A == B) || (B == C) || (A == C));
  return 0;
}*/
